//
//  NSCalendar+JTExtension.m
//  百思不得姐
//
//  Created by Robin Zhang on 2017/1/12.
//  Copyright © 2017年 BeiJingWangDianJieTong. All rights reserved.
//

#import "NSCalendar+JTExtension.h"

@implementation NSCalendar (JTExtension)

+ (instancetype)jt_calendar {
    
    if ([self respondsToSelector:@selector(calendarWithIdentifier:)]) {
        
        return [self calendarWithIdentifier:NSCalendarIdentifierGregorian];
    }
    else {
        
        return [self currentCalendar];
    }
}

@end
